<?php
/**
 * Created by PhpStorm.
 * User: liangtiehui
 * Date: 2015/12/22
 * Time: 22:40
 */
namespace Adapter;

class LogToConsole
{
    private $_errorObject;

    public function __construct($errorObject)
    {
        $this->_errorObject = $errorObject;
    }

    public function write()
    {
        print_r($this->_errorObject->getError());
    }
}